// @Author EthanScriptOn
// @Desc
package pool

// ExecutionRejectStrategy When the task cannot be processed, the rejection policy - direct execution
type ExecutionRejectStrategy struct {
}

func GenerateExecutionRejectStrategy() *ExecutionRejectStrategy {
	return new(ExecutionRejectStrategy)
}

func (e *ExecutionRejectStrategy) Reject(task Task, workerPool *WorkerPool) {
	_ = task.Execute()
	return
}
